package com.example.springboot.dao;

import com.example.springboot.domain.PromotionAd;

import java.util.List;

public interface PromotionAdMapper {

    /*
        分页查询广告信息
     */
    public List<PromotionAd> findAllPromotionAdByPage();

    /*
        广告动态上下线
     */
    public void updatePromotionAdStatus(PromotionAd promotionAd);


    PromotionAd getPromotionAdById(int id);

    void updatePromotionAd(PromotionAd promotionAd);

    void addPromotionAd(PromotionAd promotionAd);

    void deletePromotionAd(int id);
}
